package top.lingchen.spring5.bean;

/**
 * @Author 凌宸
 * @create 2021-11-28 下午 6:09
 * @Description 员工类
 * @Version 1.0
 */
public class Emp {
    private String EmpName;
    private String gender;
    // 员工属于某一个部分，使用对象形式表示
    private Dept dept;

    public void setEmpName(String empName) {
        EmpName = empName;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "EmpName='" + EmpName + '\'' +
                ", gender='" + gender + '\'' +
                ", dept=" + dept +
                '}';
    }
}
